<div id="content">
    
    <div class="response">
        <span class="warning">
            <div style="margin-bottom:10px">
                You're about to permanently delete a Product.<br />
                When a product is deleted, it is automatically removed from any Wish Lists, Portfolio projects or product Categories containing it.<br />
                Are you sure you want to do this?
            </div>
            <a class="button" href="<?=site_url($controller.'/confirm_removal/'.$item["id"])?>">CONFIRM DELETION</a>
            <a class="button" href="<?=site_url($controller)?>">CANCEL</a>
        </span>
    </div>   

    <div class="preview">   

        <? $this->load->view('admin/previews/product_item_detail', array("item" => $item))?>

    <? //show products or subcategories

        if (!empty($subitems)) { 

        $i=1;
        foreach($subitems as $subitem){ 
        ?>

            <? if (is_int(($i+2)/3)){ ?>
                <div class="summarycontainer">
            <? } ?> 
            
                <div class="contain<? if (is_int($i/3)) echo 'right'?>">
                <? $this->load->view('admin/previews/product_item_list', array("item" => $subitem))?>
                </div>                 

            <? if ( (is_int($i/3)) || ($i==count($subitems)) ){ ?>
                </div>
            <? } ?> 
        <? 
            $i++;
        } 
    } 
    ?>

    </div>


</div>